<meta charset="utf-8">
<?php

$id = $_GET["id"];
$link=@mysql_connect('localhost','root','root');
if (mysql_errno()){
	exit('数据库连接错误!'.mysql_error());
};
mysql_select_db('blogs');
mysql_set_charset('utf8');
$select="delete from biaoqian where id={$id}";
$qal=mysql_query($select);
if ($qal) {
	echo '<script>alert("删除成功");window.location.href="index.php"</script>';
}else{
	'<script>alert("删除失败");window.location.href="index.php"</script>';
};
?>